#include <iostream>
#include "vectorfunctions.h"


int main()
{
	int l, k;
	int a[100];
	cout<<"Length of array a : ";
	cin>>l;
	readVector(a, l);
	cout<<" K : ";
	cin>>k;
	ascsort(a, l); //from vectorfunctions.h 
	printVector(a, l);
	cout<<"The "<<k<<"th element is "<<a[k]<<"\n";
return 0;
}

